.alarm-list-wrapper {
  max-height: 300px;
  .alarm-item-wrapper {
    min-width: 220px;
    z-index: 4;
    font-size: 16px;
    height: 28px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    margin-bottom: 6px;
    &:last-child {
      margin-bottom: 0;
    }
    p {
      margin-bottom: 0;
    }
    &.medium {
      background-color: #ffff4b;
      color: #000000;
    }
    &.high {
      background-color: red;
      color: #fff;
    }
  }
}

.ecg-module-wrapper {
  width: 100%;
  height: 100%;
  border: 1px solid #8b8d8a;
  position: relative;
  .alarm-show-wrapper {
    min-width: 250px;
    position: absolute;
    right: 10px;
    top: 2px;
    z-index: 4;
    font-size: 16px;
    height: 28px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    p {
      margin-bottom: 0;
    }
    &.medium {
      background-color: #ffff4b;
      color: #000000;
    }
    &.high {
      background-color: red;
      color: #fff;
    }
    .alarm-msg-icon {
      position: absolute;
      bottom: -2px;
      right: 2px;
    }
  }
  @keyframes heartbeat1 {
    0% {
      transform: scale(1);
    }

    25% {
      transform: scale(1.1);
    }

    50% {
      transform: scale(1);
    }

    75% {
      transform: scale(1.1);
    }

    100% {
      transform: scale(1);
    }
  }

  .user-info-wrapper {
    width: 100%;
    line-height: 32px;
    padding: 0 10px;
    color: #afafaf;
    border-bottom: 1px solid #8b8d8a;
    display: flex;
    align-items: center;
    .patient-info {
      font-size: 16px;
      color: #fff;
      display: flex;
      align-items: center;
      img {
        width: 20px;
        height: 20px;
        margin-left: -6px;
      }
    }
    .option-wrapper {
      height: 34px;
      z-index: 4;
      display: flex;
      align-items: center;
      padding-right: 10px;
      padding-bottom: 4px;
      img {
        width: 24px;
        height: 24px;
      }
    }
  }

  .ecg-main-wrapper {
    width: 100%;
    height: calc(100% - 32px);
    display: flex;
    justify-content: space-between;
    align-items: center;

    .monitor-item {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: space-between;
    }

    .device-offline {
      width: 40%;
      height: 50px;
      background-color: #e7a042;
      font-size: 18px;
      color: #000000;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: auto;
      animation: heartbeat1 4s infinite;
    }

    .ecg-charts-wrapper {
      width: calc(100% - 200px);
      height: 100%;
    }

    .ecg-charts-inner {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .ecg-charts-item {
      height: 100%;
      display: flex;
      align-items: center;

      &.item_2 {
        height: 50%;
      }

      &.item_3 {
        height: 33.33%;
      }
    }
    .ecg-desc-wrapper {
      width: 200px;
      display: flex;
      flex-direction: column;
      justify-content: space-around;
      border-left: 1px solid #797979;
      color: #fff;
      .public-wrapper1 {
        width: 30%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
      }
      .title1 {
        font-size: 18px;
        font-weight: bold;
      }

      .title2,
      .title4 {
        font-size: 12px;
      }

      .title3 {
        width: 65%;
        transition: all 0.1s ease-in-out;
        /* 短暂过渡减少闪烁 */
        font-size: 60px;
        font-weight: bold;
        line-height: 60px;
        padding-bottom: 5px;
        text-align: center;
      }
    }
  }
  @keyframes HighWarning1 {
    0% {
      background-color: #000000;
      color: #8bff00;
    }
    100% {
      background-color: red;
      color: #fff;
    }
    50% {
      background-color: #000000;
      color: #8bff00;
    }
    75% {
      background-color: red;
      color: #fff;
    }
    100% {
      background-color: #000000;
      color: #8bff00;
    }
  }
  @keyframes HighWarning1-1 {
    0% {
      background-color: #000000;
      color: #8bff00;
    }
    100% {
      background-color: #ffff4b;
      color: #000000;
    }
    50% {
      background-color: #000000;
      color: #8bff00;
    }
    75% {
      background-color: #ffff4b;
      color: #000000;
    }
    100% {
      background-color: #000000;
      color: #8bff00;
    }
  }
  @keyframes HighWarning2 {
    0% {
      background-color: #000000;
      color: #31a0ff;
    }
    100% {
      background-color: red;
      color: #fff;
    }
    50% {
      background-color: #000000;
      color: #31a0ff;
    }
    75% {
      background-color: red;
      color: #fff;
    }
    100% {
      background-color: #000000;
      color: #31a0ff;
    }
  }
  @keyframes HighWarning2-1 {
    0% {
      background-color: #000000;
      color: #31a0ff;
    }
    100% {
      background-color: #ffff4b;
      color: #000000;
    }
    50% {
      background-color: #000000;
      color: #31a0ff;
    }
    75% {
      background-color: #ffff4b;
      color: #000000;
    }
    100% {
      background-color: #000000;
      color: #31a0ff;
    }
  }
  @keyframes HighWarning3 {
    0% {
      background-color: #000000;
      color: #f4cd00;
    }
    100% {
      background-color: red;
      color: #fff;
    }
    50% {
      background-color: #000000;
      color: #f4cd00;
    }
    75% {
      background-color: red;
      color: #fff;
    }
    100% {
      background-color: #000000;
      color: #f4cd00;
    }
  }
  @keyframes HighWarning3-1 {
    0% {
      background-color: #000000;
      color: #f4cd00;
    }
    100% {
      background-color: #ffff4b;
      color: #000000;
    }
    50% {
      background-color: #000000;
      color: #f4cd00;
    }
    75% {
      background-color: #ffff4b;
      color: #000000;
    }
    100% {
      background-color: #000000;
      color: #f4cd00;
    }
  }
  .ecg-describe-item {
    width: 100%;
    height: 33.33%;
    position: relative;
    padding: 2px 5% 2px 2px;
    border-bottom: 1px solid #797979;
    display: flex;
    align-items: center;
    justify-content: space-between;
    &:last-child {
      border-bottom: 0px solid #797979;
    }

    &:nth-child(1) div {
      color: #8bff00;
      &.title3 {
        border-radius: 4px;
        &.notice {
          animation: HighWarning1 2s infinite;
          animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
        }
        &.notice1 {
          animation: HighWarning1-1 2s infinite;
          animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
        }
      }
    }

    &:nth-child(2) div {
      color: #31a0ff;
      &.title3 {
        border-radius: 4px;
        &.notice {
          animation: HighWarning2 2s infinite;
          animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
        }
        &.notice1 {
          animation: HighWarning2-1 2s infinite;
          animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
        }
      }
    }

    &:nth-child(3) div {
      color: #f4cd00;
      &.title3 {
        border-radius: 4px;
        &.notice {
          animation: HighWarning3 2s infinite;
          animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
        }
        &.notice1 {
          animation: HighWarning3-1 2s infinite;
          animation-timing-function: steps(1, end); /* 确保颜色立即变化 */
        }
      }
    }
    .closeNoticeImg {
      width: 25px;
      height: 25px;
      margin-left: -2px;
    }
  }
}
